

package com.hazelcast.internal.management.events;

import com.hazelcast.internal.json.JsonObject;

import java.util.UUID;

public abstract class AbstractWanConfigurationEventBase extends AbstractWanEvent {
    private final String wanConfigName;

    protected AbstractWanConfigurationEventBase(UUID uuid, String wanConfigName) {
        super(uuid);
        this.wanConfigName = wanConfigName;
    }

    @Override
    public JsonObject toJson() {
        JsonObject json = super.toJson();
        json.add("wanConfigName", wanConfigName);
        return json;
    }
}
